{% extends 'student_base.html' %}

{% block context %}
 <div class="col-sm-6 col-lg-4 mb-4" style="position: absolute;right: 35%">
      <div class="card text-center">
        <div class="card-body">
          <h5 class="card-title">修改登录密码</h5>
          <form method="post">
            {% csrf_token %}
            <div class="form-floating">
            <input type="text" class="form-control" id="floatingInput" placeholder="原密码" name="password">
            <label for="floatingInput">原密码</label>
            </div>
            <div class="form-floating">
            <input type="password" class="form-control" id="floatingPassword" placeholder="新密码" name="new_password">
            <label for="floatingPassword">新密码</label>
            </div>
            <div class="form-floating">
            <input type="password" class="form-control" id="floatingPassword" placeholder="确认新密码" name="new_password_repeat">
            <label for="floatingPassword">确认新密码</label>
            </div>
              {% if messages %}
        <ul style="list-style: none">
            {% for message in messages %}
                <li style="color: red">{{ message }}</li>
            {% endfor %}
        {% endif %}
              </ul>
              <button class="w-100 btn btn-lg btn-primary" type="submit">确定</button>
              </form>
        </div>
        </div>
    </div>
{% endblock %}